#define _CRT_SECURE_NO_WARNINGS 1


#include<iostream>

using namespace std;

class Date
{
public:

	//explicit Date(int year, int month = 11, int day = 3)
	//	:_year(year)
	//	, _month(month)
	//	, _day(day)
	//	//, dd(year)
	//	//, _n(month)
	//{
	//}

	Date(int year, int month = 11, int day = 3)

		:_year(year)
		, _month(month)
		, _day(day)
		//, dd(year)
		//, _n(month)
	{
		_count++;
		cout << "Date()" << endl;

	}
	Date(Date& dd)
	{
		_year = dd._year;
		_month = dd._month;
		_day = dd._day;
		_count++;

		cout << "Date(Date& dd)" << endl;
	}
	static int GetCount()
	{
		return _count;
	}


private:
	int _year;
	int _month;
	int _day;
	static int _count;
	//int& dd;
	//const int _n;

};

int Date::_count = 0;

int main()
{
	Date d1(3);
	Date d2(d1);
	//const Date& dd(3);
	cout << Date::GetCount() << endl;
	return 0;
}